package cn.ven.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName("t_blog")
public class Blog {
    @TableId(type = IdType.AUTO)
    private Integer id;//博客id 主键
    private Integer uid;//用户id
    private Integer contentid; //内容id
    private String title; //标题
    private String digest; //摘要
    private Integer tagid; //标签id
    private Integer likeNum; //点赞的数量
    private Integer readingNum; //阅读量
    private Integer collectNum; //收藏数量
    private Integer closed; //是否可见
    private Date tcreate; //创建时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getContentid() {
        return contentid;
    }

    public void setContentid(Integer contentid) {
        this.contentid = contentid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public Integer getTagid() {
        return tagid;
    }

    public void setTagid(Integer tagid) {
        this.tagid = tagid;
    }





    public Integer getClosed() {
        return closed;
    }

    public void setClosed(Integer closed) {
        this.closed = closed;
    }

    public Date getTcreate() {
        return tcreate;
    }

    public void setTcreate(Date tcreate) {
        this.tcreate = tcreate;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getReadingNum() {
        return readingNum;
    }

    public void setReadingNum(Integer readingNum) {
        this.readingNum = readingNum;
    }

    public Integer getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(Integer collectNum) {
        this.collectNum = collectNum;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", uid=" + uid +
                ", contentid=" + contentid +
                ", title='" + title + '\'' +
                ", digest='" + digest + '\'' +
                ", tagid=" + tagid +
                ", likeNum=" + likeNum +
                ", readingNum=" + readingNum +
                ", collectNum=" + collectNum +
                ", closed=" + closed +
                ", tcreate=" + tcreate +
                '}';
    }
}
